﻿package model;

import java.sql.Timestamp;

public class Study {

	private int studyid;
	private String title; // 스터디 이름
	private String content; // 내용
	private int uid;
	private String memid;
	private Timestamp createdTime;
	private Timestamp updatedTime;
	private Timestamp expiredTime;
	private int did; // deposit id
	private int deposit; // 보증금
	private int fid; // fine id
	private int fine; // 벌금
	private int currentMember; // 현재 가입 인원
	private int memberLimit; // 전체 팀원 수
	private int cid;
	private String category;
	private int currentDeposit; // 현재 total 보증금
	private boolean isExpired=false;

	public boolean isExpired() {
		return isExpired;
	}

	public void setExpired(boolean isExpired) {
		this.isExpired = isExpired;
	}
	public Study() {

	}

	public Study(int studyid, String title, String category) {
		this.studyid = studyid;
		this.title = title;
		this.category = category;
	}

	public Study(int studyid, String title, String memid,
			Timestamp createdTime, String category) {
		this.studyid = studyid;
		this.title = title;
		this.memid = memid;
		this.createdTime = createdTime;
		this.category = category;
	}

	public Study(String title, String content, int uid, Timestamp createdTime,
			Timestamp expiredTime, int did, int fid, int currentMember,
			int memberLimit, int cid, int currentDeposit) {
		this.title = title;
		this.content = content;
		this.uid = uid;
		this.createdTime = createdTime;
		this.expiredTime = expiredTime;
		this.did = did;
		this.fid = fid;
		this.currentMember = currentMember;
		this.memberLimit = memberLimit;
		this.cid = cid;
		this.currentDeposit = currentDeposit;
	}

	// �� ���� ��
	public Study(int studyid, String title, String content, int uid,
			Timestamp createdTime, Timestamp updatedTime,
			Timestamp expiredTime, int deposit, int fine, int currentMember,
			int memberLimit, String category, int currentDeposit) {
		this.studyid = studyid;
		this.title = title;
		this.content = content;
		this.uid = uid;
		this.createdTime = createdTime;
		this.updatedTime = updatedTime;
		this.expiredTime = expiredTime;
		this.deposit = deposit;
		this.fine = fine;
		this.currentMember = currentMember;
		this.memberLimit = memberLimit;
		this.category = category;
		this.currentDeposit = currentDeposit;
	}

	public int getStudyid() {
		return studyid;
	}

	public void setStudyid(int studyid) {
		this.studyid = studyid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getMemid() {
		return memid;
	}

	public void setMemid(String memid) {
		this.memid = memid;
	}

	public Timestamp getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	public Timestamp getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Timestamp updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Timestamp getExpiredTime() {
		return expiredTime;
	}

	public void setExpiredTime(Timestamp expiredTime) {
		this.expiredTime = expiredTime;
	}

	public int getDid() {
		return did;
	}

	public void setDid(int did) {
		this.did = did;
	}

	public int getDeposit() {
		return deposit;
	}

	public void setDeposit(int deposit) {
		this.deposit = deposit;
	}

	public int getFid() {
		return fid;
	}

	public void setFid(int fid) {
		this.fid = fid;
	}

	public int getFine() {
		return fine;
	}

	public void setFine(int fine) {
		this.fine = fine;
	}

	public int getCurrentMember() {
		return currentMember;
	}

	public void setCurrentMember(int currentMember) {
		this.currentMember = currentMember;
	}

	public int getMemberLimit() {
		return memberLimit;
	}

	public void setMemberLimit(int memberLimit) {
		this.memberLimit = memberLimit;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public int getCurrentDeposit() {
		return currentDeposit;
	}

	public void setCurrentDeposit(int currentDeposit) {
		this.currentDeposit = currentDeposit;
	}

}
